<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link href="./css/a.css">
</head>
<body>
    <button id="replay">播放</button>
    <button id="canv">截图</button>
    <input type="text" id="name">
    <input type="file" id="file">
    <select name="" id="month">
        <option value="1">1</option>
        <option value="2">2</option>
        <option value="3">3</option>
        <option value="4">4</option>
        <option value="5">5</option>
        <option value="6">6</option>
    </select>
    <img src="https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png" alt="" srcset="">
    <!-- <script src="./require.js" data-main="main"></script> -->
    <script src="../assets/nrrweb.min.js"></script>
    <script>
        window.nrrwebConfig = {
            domain: 'http://localhost:8080/slxt-web',
            version: '1.0.2',
            splitNum: 10,
            systemCode: 'INB111',
        };
        nrrweb.record({
            productCode:''
        })

        document.querySelector('#replay').onclick = function(){
            nrrweb.unsubscribe({})
            var link = nrrweb.linkProject({data:{
                businessNo: '1111', //业务识别号（保单号）
                appliName: 'zhangsan', //投保人姓名
                appliBirthday: '2020-11-20', //投保人出生日期
                appliCardNo: '410382111111111111', //投保人证件号
                insuredName: 'lisi', //被保人姓名
                insuredBirthday: '2', //被保人出生日期
                insuredCardNo: '123456789', //被保人证件号
                productName: 'ddddd', //产品名称
                productCode: 'ddddd', //产品编码
                totalPremium: 'ddddd', //总保费
                policyStatus: '待审核', //保单状态
                organCode: '机构', //机构
                insurancePeriod: '10', //保险期间
                dataState: '3', //数据状态： 1-开始录制、2-离开录制、3-录制完成(只有开始或离开录制或录制完成时传)
                projson: '',
            }}).then(function(data){
                console.log(data)
            })
            console.log(link);
        }
        document.querySelector('#canv').onclick = function(){
            nrrweb.ScreenCapture('ddd',function(){

            })
        }
    </script>
</body>
</html>